package com.gexiaobao.pigeon.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.gexiaobao.pigeon.R
import com.gexiaobao.pigeon.app.base.DataBindBaseViewHolder
import com.gexiaobao.pigeon.app.model.bean.BreedingPairSubList
import com.gexiaobao.pigeon.databinding.ItemPairSubListBinding

/**
 * @Author      : hxw
 * @Date        : 2024/9/9 10:20
 * @Describe    :
 */
class AdapterBreedingRecord : BaseQuickAdapter<BreedingPairSubList, DataBindBaseViewHolder>(R.layout.item_pair_sub_list) {
    override fun convert(holder: DataBindBaseViewHolder, item: BreedingPairSubList) {
        val binding = DataBindBaseViewHolder.getBinding(holder) as ItemPairSubListBinding
        binding.data = item
        binding.executePendingBindings()//防止列表抖动

    }
}